package cn.tedu.tea.admin.server.content.schedule;

import cn.tedu.tea.admin.server.content.service.IArticleService;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

/**
 * @author java@tedu.cn
 * @version 1.0
 */
@Slf4j
@Component
public class ArticleSearchSchedule {

    @Autowired
    private IArticleService articleService;

    @Scheduled(fixedRate = 10 * 1000)
    public void rebuildSearch() {
        log.debug("更新elasticsearch中的文章列表数据");
        // articleService.rebuildSearch();
    }

}
